<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<style type="text/css">
.container {
	margin-top: 120px
}

td th {
	text-align: center;
}
</style>
<head>
<meta charset="UTF-8">
<!-- 
<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
 -->


<title>Insert title here</title>
</head>
<body>
	<jsp:include page="../../common/bar.jsp"></jsp:include>
	<div class="container">
		<h1 align="center">Merchant Info</h1>
		</br>
		<table class="table table-hover" style="width: 30%; margin: 0 auto;">
			<thead>
				<tr>
					<th>Info</th>
					<th>Info</th>
				</tr>

			</thead>

			<tbody>
				<tr>
					<td>Name</td>
					<td id="td1">${m.name}</td>
				</tr>
				<tr>
					<td>StoreName</td>
					<td id="td2">${m.store_name}</td>
				</tr>

				<tr>
					<td>Address</td>
					<td id="td3">${m.address}</td>
				</tr>
				<tr>
					<td>State</td>
					<c:if test="${m.state==2}">

						<td id="td4">Reject</td>
					</c:if>
					<c:if test="${m.state==1}">

						<td id="td4">Success</td>
					</c:if>
					<c:if test="${m.state==0}">

						<td id="td4">Unhandled</td>
					</c:if>
				</tr>
				<tr id="tr-reason" style="display:none;">
					<td>Reason</td>
					<td id="reason"></td>
				</tr>
			</tbody>
		</table>
		</br>
		<div style="margin: 0 auto; text-align: center;">
			<img class="img-circle" src="${m.img}" width="100px" height="100px" />
		</div>
		<br />
		<div class="text-center">
			<button id="openUpdate" class="btn btn-success col-md-offset-3">Update</button>
		</div>
	</div>
	<jsp:include page="updateModal.jsp"></jsp:include>
	<script type="text/javascript" src="../../js/muser.js"></script>
</body>
</html>